package com.yiyuan.app.entity.param;

import com.guaike.core.entity.annotation.IsDictValue;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("开始挑战请求入参")
public class StartBattleDTO implements Serializable {

    @ApiModelProperty(value = "榜单类型(0:推币机，1：街机，2：娱乐)", required = true)
    @NotNull(message = "榜单类型不能为空")
    @IsDictValue(code = BusinessDictCodeConstant.ROOM_TYPE, message = "榜单类型不存在")
    private Integer roomType;

    @ApiModelProperty(value = "battleId", required = true)
    @NotNull(message = "battleId不能为空")
    private Long battleId;

}
